package name.zxw.xiaowo.bean.base;

/**
 * 返回结果类型
 *
 * @author wangzai
 */
public enum ResultEnum {

    SUCCESS(2000, "success"),
    ERROR(5000, "error"),
    NO_LOGIN(5001, "连接超时,请重新登录"),
    INCORRECT_PARAMETER_FORMAT(5002, "参数格式错误"),
    FILE_SIZE_EXCEED_MAX(5003, "文件大小超过上限"),
    SERVICE_EXCEPTION(5004, "系统服务异常"),
    AUTHORITY_MISSING(5005, "权限不足"),
    FIRM_NAME_REPEAT(5011, "公司名称重复"),
    PHONE_REPEAT(5012, "手机号重复"),
    VERIFICATION_CODE_ERROR(5013, "验证码错误"),
    CODE_REPEAT(5014, "代码重复"),
    PASSWORD_ERROR(5090, "原密码错误请重新输入"),
    TIME_REPEAT(5015, "时间重复"),
    FIRM_NOT_EXIST(5016, "公司不存在"),
    NO_BILLNO(5017, "订单编号错误"),
    NO_XIAOZHANG(5025, "销账失败，可能是某条sql发生异常"),
    NO_FEIYONGINFO(5026, "暂无费用记录"),
    STOPCHEDAN(5006, "已有费用，禁止撤单"),
    MORENGTU(5007, "/file/头像库/45d7e0bc44521a2fea5dc57d18427be.png"),
    NO_INFO(5022, "费用单无信息"),
    REPEAT(5018, "重复"),
    CHECK_ING(5019, "审核中"),
    CHECK_RETURN(5020, "审核退回"),
    CHECK_STOP(5021, "禁止登录"),
    FIRM_MISSING(5022, "请选择公司"),
    TIME_OUT_PRINT(5023,"请重新选择未开票明细再打印 超时"),
    FAIL_RETURN(5028, "退回失败"),
    CHANGE_FAIL(5060, "修改失败"),
    FIRST_LOGIN(5070, "您是首次登录，请点击重置密码,修改密码后再登录"),
    No_UPDATE(5080, "不需要更新"),
    No_TONGBU(5880, "不需要同步"),
    WECHAT_USER_REFUSE_LOGIN(5101, "微信用户拒绝登陆"),
    WECHAT_ERRMSG_ORIGINAL(5102, "微信错误信息(原版)"),

    OTHER(1000, "other");


    private Integer code;

    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }


}
